import model.Food;
import gui.Grass;
import controller.GameEngine;


public class SnakeGame {

	private static final int SEGMENT_SIZE = 10;
	private static final int BOARD_SIZE = 400;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Grass grass = new Grass(BOARD_SIZE, SEGMENT_SIZE);
		GameEngine engine = new GameEngine(grass, BOARD_SIZE, SEGMENT_SIZE);
		Food food = new Food(10, BOARD_SIZE / SEGMENT_SIZE, SEGMENT_SIZE);
		engine.addFood(food);
		engine.startGame();
		Thread gameThread = new Thread(engine);
		gameThread.start();

	}

}
